package com.wanxin.wb.module.weixin.controller;







import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.wanxin.wb.common.support.BaseController;
import com.wanxin.wb.module.weixin.service.ITranscationService;



@Controller
@RequestMapping("/weixin/cn/tran")
public class TranscationController  extends BaseController{
	
	@Autowired
	private ITranscationService tranService;
	/**  
	 *    localhost:8080/UPI/weixin/cn/tran/test.do?data=
	 * rest 地址  
	 * @param data
	 * @return
	 */
	
	     @RequestMapping(value = "/test", produces = "application/json; charset=utf-8", method = RequestMethod.GET)
	    @ResponseBody
	  
	    public String modifyPresellNums(@RequestParam(value = "data", required = true) String data) {
	      
	        /*------------------------------------------------------------------*
	         *                              准备参数
	         *------------------------------------------------------------------*/
	             
	        /*------------------------------------------------------------------*
	         *                              返回结果
	         *------------------------------------------------------------------*/
	    	 tranService.addBatch();
	       // String response=JSONObject.toJSONString(list);
	        return success("1");
	    }
	    

}
